package com.fqr;

import java.util.Hashtable;
import java.util.Map;

@SuppressWarnings("unchecked")
public class GlobalContext {
	
	private static Map map = new Hashtable();
	
	public static Object put(Object k, Object v) {
		if(v == null)
			return map.remove(k);
		
		return map.put(k, v);
	}
	
	public static Object get(Object k) {
		return map.get(k);
	}
	
	public static void clear() {
		map.clear();
	}

}
